Signal is a very important part of Linux programming, this article will detail the basic concept of signal mechanism, the approximate realization method of Linux to signal mechanism, how to use signal, and several system calls about signal.Signal
Signal is a very important part in Linux programming. This article will introduce in detail the basic concepts of the signal mechanism, the general implementation of the signal mechanism in Linux, and how to use the signal, and several system calls
Signal is a very important part in Linux programming. This article will introduce in detail the basic concepts of the signal mechanism, the general implementation of the signal mechanism in Linux, and how to use the signal, and several system calls
A signal is a software interrupt, an asynchronous communication method that handles an asynchronous event. For example, we run the program in the terminal, by pressing the keyboard "CTRL + C", you can send a SIGINT interrupt signal to stop the
signal and its processing
signal processing is an event that UNIX and Linux systems generate in response to certain conditions, usually the kernel generates a signal, and the process receives a signal and takes action accordingly .For example,
For a complete signal Life Cycle (after the signal is sent to the corresponding processing function for execution), it can be divided into three phases:
Signal Generation
Sign up in process
Logout of signal in process
Signal processing
1. Daemon list
AMD: Automatic Installation of NFS (Network File System) Guard process apmd: Advanced Power governance arpwatch: record logs and build an ethernet address and IP address on the LAN interface to the database autofs: automatic
From: http://www.dbafree.net /? P = 870
We can use kill-L to view all the semaphore interpretations, but we cannot see the signal 0 interpretations.
[root@testdb~]# kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6)
Signal System Function calls provide a simple example. However, the C prototype Declaration makes it look more complex than the actual one. The signal function associates a given function with a specific signal. Here is the definition in FreeBSD
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.